package com.rany.day03.demo05;

import java.util.ArrayList;

public class MainTset {
    public static void main(String[] args) {
        Manager manager = new Manager("gugu",500);
        Member member = new Member("lin",200);
        Member member2 = new Member("huang",200);
        Member member3 = new Member("tian",200);

        manager.show();
        member.show();
        member2.show();
        member3.show();

        System.out.println("+++++++++++++++++++++++");

        ArrayList<Integer> redList = manager.send(400, 3);
        member.receive(redList);
        member2.receive(redList);
        member3.receive(redList);

        manager.show();
        member.show();
        member2.show();
        member3.show();
    }
}
